package com.bestcem.xm.label.grpc.service.param.label;

import com.bestcem.xm.common.core.constant.RegTypes;
import lombok.Getter;
import lombok.Setter;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;
import java.util.List;

/**
 * 获取标签值列表参数校验
 *
 * @author yf.wang <yf.wang@idiaoyan.com>
 * @version V1.0
 * @date 2021/5/21
 */
@Getter
@Setter
public class ListGroupLabelsParam {

    @Valid
    @Size(min = 1, message = "标签组id列表不能为空")
    private List<@Pattern(regexp = RegTypes.OBJECT_ID, message = "标签组id格式错误") String> labelGroupIds;

    @NotBlank(message = "机构id不能为空")
    @Pattern(regexp = RegTypes.OBJECT_ID, message = "机构id格式错误")
    private String orgId;
}
